<?php
  require_once('db_connection.php');
  $query = "SELECT * FROM `users`";
  $result  = mysql_query($query) or die(mysql_error());

  $selected_records = mysql_num_rows($result);
  echo "TOTAL : $selected_records \n\n";

  while($ans = mysql_fetch_assoc($result)){
#    print_r($ans);
    echo $ans['name'],"\n";
  }

  //while($ans = mysql_fetch_array($result)){
    //echo $ans['name'],"\n";
    //echo $ans[1],"\n-------------\n";
  //}

  //while($ans = mysql_fetch_row($result)){
    //echo $ans[1],"\n-------------\n";
  //}


  //while($ans = mysql_fetch_object($result)){
    //echo $ans->name,"\n-------------\n";
  //}

?>
